home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / tclshell / initialize < prev    next >
Encoding:
Text File  |  1992-12-17  |  2.0 KB  |  42 lines

  1.  
  2.  
  3.           The standard Tcl shell initialization consists of the
  4.           following steps:
  5.  
  6.                Search for a default file.  The default file is a Tcl
  7.                script that is executed to set important Tcl variables
  8.                that govern startup, such as TCLPATH.  The current
  9.                Extended Tcl version, represented by $ver, is included
  10.                in the default file name to allow multiple Tcl versions
  11.                to exists on a system.  Note that the Extended Tcl
  12.                version is the standard Tcl version number with an
  13.                alphabetic character added to indicated the version of
  14.                Extended Tcl.  (The infox version command will return
  15.                this version number.)
  16.  
  17.           The Tcl default file is searched for using the following
  18.           algorithm:
  19.  
  20.                     - An environment variable, TCLDEFAULT, is checked
  21.                     for.  If present, it is used as the name of the
  22.                     default file.
  23.  
  24.                     - A global default file, which is usually either
  25.                     /etc/default/tcl$ver or
  26.                     /usr/local/lib/tcldefault$ver.  (Tcl may be
  27.                     compiled to use a different directory if desired).
  28.  
  29.                First, Tcl executes the default file.  This file
  30.                normally sets at least two Tcl variables: TCLPATH,
  31.                which contains a list of directories that contain tcl
  32.                source files and libraries, and TCLINIT, the full
  33.                pathname of the Tcl source file that performs Tcl
  34.                initialization.  Other site-specific variables may also
  35.                be set in this file.
  36.  
  37.                Next, tcl executes the initialization file specified by
  38.                the Tcl variable TCLINIT.  This is normally the
  39.                TclInit.Tcl file distributed with Tcl.  This file
  40.                defines the Tcl environment, including standard
  41.                Extended Tcl procedures and variables.
  42.